<% @ Page Language="C#" MasterPageFile="~/mainMasterPage.master" Title="BAI Travel and Tour" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_index" %>
<asp:Content ID="Main" ContentPlaceHolderID="mainInfo" Runat="Server">
    <h1>Welcome to BAI Travel and Tour</h1>
	<p>We are a travel agency based in Botswana, the United States of America and India. We specialize in tours in these three countries. Have a look around and prepare to kick back and relax on your next vacation.</p>
	<img src="images/title3.gif" alt="" width="258" height="21" /><br />
	<div id="items">
        <% Dictionary<String, String> d = getCountries(); %>
    <% foreach (String key in getCountries().Keys)
       { %>
    <div class="item">
    <a href="viewcountry.aspx?country=<%=key%>"><img src="<%=d[key]%>" alt="" /></a>
    <span><a href="viewcountry.aspx?country=<%=key%>"><%=key%></a></span>
    </div>
    <% } %>
    </div>
</asp:Content>
    
<asp:Content ID="rightSide" ContentPlaceHolderID="rightSideInfo" Runat="Server" >
    <h1>Latest Tours</h1><br />
    <%  db database = new db();
        ArrayList news = database.getLatestNews();
        destinations myDest = (destinations)news[0];
        
        %>
    <div class="news">
		<span><%=myDest.Name%></span><br />
		<p><%=myDest.Description%>...</p>
		<a href="viewcountry.aspx?country=<%=myDest.Country%>#<%=myDest.Id %>" class="more">more info</a>
	</div>
    <div class="news">
        <%myDest = (destinations)news[1];%>
		<span><%=myDest.Name%></span><br />
		<p><%=myDest.Description%></p>
		<a href="viewcountry.aspx?country=<%=myDest.Country%>#<%=myDest.Id %>" class="more">more info</a>
	</div>
</asp:content>
